package java67_adv8;

public class Thread0 {
	private String name;

	public Thread0(String n) {
		name = n;
	}

	public void start() {
		run();
	}

	public void run() {
		for (int i = 1; i <= 20; i++) {
			System.out.println(name + " print " + i);
		}
	}

	public static void main(String[] args) {
		Thread0 t1 = new Thread0("线程1");
		Thread0 t2 = new Thread0("线程2");
		Thread0 t3 = new Thread0("线程3");
		t1.start();
		t2.start();
		t3.start();
	}
}
